"""src URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.urls import path
from . import views

urlpatterns = [
    # 获取排行榜
    path("leaderboard", views.leaderBoardView.as_view()),
    # 获取个人排行榜
    path("selfLeaderboard", views.self_leaderBoardView.as_view()),
    # 获取记录详情
    path("getRecordDetail", views.get_record_detail.as_view()),
    # 点赞/取消点赞
    path("like", views.LikeView.as_view()),
    # 赛事列表 发布赛事
    path("game", views.GameView.as_view()),
    # 获取赛事详情
    path("gameDetail", views.GameDetailView.as_view()),
    # 赛事报名
    path("gameApply", views.GameApplyView.as_view()),
    # 获取赛事图  给赛事添加赛事图
    path("gamePic", views.GamePicView.as_view()),
    # 缴纳报名费用 查询支付结果
    path("applyPrice", views.ApplyPriceView.as_view()),
    # 添加场地 获取场地列表
    path("site", views.SiteView.as_view()),
    # 场地细节
    path("siteDetail", views.SiteDetailView.as_view()),
    # 获取场地列表
    path("sitelist", views.setlist),
    # 场地报名
    path("siteApply", views.SiteApplyView.as_view()),
    # 场地报名支付
    path("applyPay", views.SiteApplyPayView.as_view()),
    # 场地报名支付成功
    path("PaySuccess", views.SiteApplyPaySuccessView.as_view()),
    # 获取是否重复报名
    path("applyStatus", views.SiteApplyStatusView.as_view()),
    # 场地退款
    path("siteApplyRefund", views.SiteApplyRefundView.as_view()),
    # 获取我的场地申请
    path("mySiteApply", views.MySiteApplyView.as_view()),
    # 图像识别
    path("ocr", views.OcrView.as_view()),
    # 粉丝关注
    path("fansFollow", views.FansView.as_view()),

]
# print(urlpatterns)
